package com.rajesh.messageservice.bean;

import net.sqlcipher.Cursor;

public class UserInfo extends WxDbBean {
    private String userName;
    private String nickName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public UserInfo(){}

    public UserInfo(String userName, String nickName) {
        this.userName = userName;
        this.nickName = nickName;
    }

    @Override
    public WxDbBean translate(Cursor cursor) {
        if(cursor != null){
            this.userName = cursor.getString(cursor.getColumnIndex("UserName"));
            this.nickName = cursor.getString(cursor.getColumnIndex("NickName"));
        }
        return this;
    }
}
